/*
 * *
 *  * Copyright (c) iwindplus Technologies Co., Ltd.2024-2030, All rights reserved.
 *
 *
 */

package com.iwindplus.mgt.api.system;

import com.iwindplus.base.domain.vo.ResultVO;
import com.iwindplus.base.domain.vo.ServerInfoVO;
import io.swagger.v3.oas.annotations.Operation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * 服务API相关接口.
 *
 * @author zengdegui
 * @since 2020年4月1日
 */
public interface ServerApiApi {

    /**
     * API前缀.
     */
    String API_PREFIX = "inner/serverApi/";

    /**
     * 添加或编辑.
     *
     * @param entity 对象
     * @return ResultVO<Boolean>
     */
    @Operation(summary = "添加或编辑")
    @PostMapping(API_PREFIX + "saveOrEdit")
    ResultVO<Boolean> saveOrEdit(@RequestBody ServerInfoVO entity);
}
